import fetch from 'utils/fetch';

export function page(query) {
  return fetch({
    // url: '/api/admin/bizResumeMain/page',
    url: '/api/admin/bizResumeMain/resumeMainPage',
    method: 'get',
    params: query
  });
}

export function fetchClassTreeObj(query) {
  return fetch({
    url: '/api/admin/bizClass/getClassTree',
    method: 'post',
    params: query
  });
}

export function delObj(id) {
  return fetch({
    url: '/api/admin/bizResumeMain/' + id,
    method: 'delete'
  })
}

export function exportObj(obj) {
  return fetch({
    // url: '/api/admin/bizResumeMain/down?ids='+obj,
    url: '/api/admin/excel/down?ids='+obj,
    method: 'get',
    data: obj
  })
}
